import { createStore ,applyMiddleware,compose} from 'redux';
import thunk from 'redux-thunk';

import RootReducer from './reducers';

import DevTools from '../components/DevTools';

const finalCreateStore = compose(
    applyMiddleware(thunk),
    DevTools.instrument()
)(createStore);

export const store = finalCreateStore(RootReducer);

export const DevTool=DevTools;